Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Nov 13, 2024

No description provided.

@github-actions github-actions bot added the Java label Nov 13, 2024

/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */
predicate lambdaCreation(Node creation, LambdaCallKind kind, DataFlowCallable c) {
predicate lambdaCreationHelper(Node creation, LambdaCallKind kind, DataFlowCallable c) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic`

Candidate predicate to [lambdaCreation](1) is not marked as nomagic.
@github-actions github-actions bot added the C# label Nov 13, 2024
n.(PostUpdateNode).getPreUpdateNode().(ExprNode).getControlFlowNode(),
n.(LocalFunctionCreationPostUpdateNode).getUnderlyingControlFlowNode()
]
[n.(PostUpdateNode).getPreUpdateNode().(ExprNode).getControlFlowNode(),]

Check warning

Code scanning / CodeQL

Singleton set literal

Singleton set literal can be replaced by its member.
TSyntheticFieldContent(SyntheticField s) or
TLambdaReturnContent(Method m) or
TLambdaArgumentContent(Method m, ArgumentPosition pos) {
exists(m.getParameter(pos)) or pos = -1

Check warning

Code scanning / CodeQL

Var only used in one side of disjunct.

The [variable m](1) is only used in one side of disjunct.
TSyntheticFieldApproxContent() or
TLambdaReturnContentApprox(Method m) or
TLambdaArgumentApprox(Method m, ArgumentPosition pos) {
exists(m.getParameter(pos)) or pos = -1

Check warning

Code scanning / CodeQL

Var only used in one side of disjunct.

The [variable m](1) is only used in one side of disjunct.
TNodeLambdaMalloc(Node lambda) { lambdaCreation(lambda, _, _, _) } or
TNodeLambdaArgs(Node lambda) { lambdaCreation(lambda, _, _, _) } or
TNodeLambdaArg(DataFlowCall synthCall, ArgumentPosition apos, Boolean ispost) {
exists(DataFlowCallable c, ParameterNode p, ParameterPosition ppos |

Check warning

Code scanning / CodeQL

Omittable 'exists' variable

This exists variable can be omitted by using a don't-care expression [in this argument](1).
@hvitved hvitved force-pushed the dataflow/lambda-flow branch 2 times, most recently from 1b17262 to 205a41a Compare November 15, 2024 09:16
@hvitved hvitved force-pushed the dataflow/lambda-flow branch from 205a41a to 19119ea Compare November 15, 2024 09:57
@hvitved hvitved closed this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants